package com.sql.connection;

import java.sql.ResultSet;

/**
 * @Auther: zch
 * @Date: 2019/6/26 16:19
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
      DataSourceConfig config=new DataSourceConfig();
      ConnectionFactory connectionFactory=new ConnectionFactory(config);
      for(int i=0;i<3000;i++){
          SqlConnection connection=connectionFactory.getConnection();
          ResultSet resultSet=connection.query("select * from user");
          connection.close();
      }
    }
}
